// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   PostDetailController.java

package dale.web.post.controller;

import dale.web.post.service.PostService;
import org.springframework.ui.Model;

public class PostDetailController
{

    public PostDetailController(PostService service)
    {
        this.service = service;
    }

    public String read(int no, Model model)
    {
        dale.web.post.domain.Post post = service.detail(no);
        model.addAttribute("post", post);
        return "post/detail";
    }

    public String before(int no, Model model)
    {
        int before = service.before(no);
        return read(before, model);
    }

    public String after(int no, Model model)
    {
        int after = service.after(no);
        return read(after, model);
    }

    private PostService service;
}
